extends HBoxContainer


var data 

signal edit(data)
signal delete(data)

func _ready():
	pass # Replace with function body.



func set_data(data):
	self.data = data
	
	var poke_id = data["pokeId"]
	var poke_info = DataSource.get_spirit_by_id(poke_id)
	
	$name.text = poke_info["name"]



func _on_name_button_up():
	emit_signal("edit", data)


func _on_del_button_up():
	emit_signal("delete", data)
